allow reregistering but check for differences
authorRupert Weber <gimp@leguanease.org>
Fri, 1 Oct 2010 00:18:53 +0000 (02:18 +0200)
committerØyvind Kolås <pippin@gimp.org>
Thu, 20 Jan 2011 21:42:59 +0000 (21:42 +0000)
commit4006f433f9e0d6b3cb54943adccada464f69595a
treea3d86e3b9b60841a7df3d7a135414e2c5ae04fd8
parentcfeaaf62b8d5babef2ab34798fff1e1f64905422
allow reregistering but check for differences

babl_model_new() emitted a warning when reregistering a model,
babl_format_new(), babl_type_new(), and babl_component_new()
quietly returned a preexisting object.

Changed so that all four functions return the preexisting object
if the new registration doesn't conflict, otherwise make the
error fatal.

(Fixed some conflicting and redundant registrations for
"Y'CbCr u8" along the way)
babl/babl-component.c
babl/babl-format.c
babl/babl-model.c
babl/babl-type.c
babl/base/formats.c
babl/base/model-ycbcr.c
extensions/gggl-lies.c
extensions/gggl.c